/* eslint-disable camelcase */
import {
  Tp_procmaterial_mater_mediate,
  Tp_procmaterial_accept_accept,
  Tp_procmaterial_accept_inform,
  Tp_procmaterial_accept_append,
  Tp_procmaterial_accept_noaccept,
  Tp_procmaterial_hear_mediate,
  Tp_procmaterial_trawl,
  Tp_procmaterial_survey,
  Tp_procmaterial_inquest,
  Tp_procmaterial_hearing,
  Tp_procmaterial_identify,
  Tp_procmaterial_stop,
  Tp_procmaterial_delay,
  Tp_procmaterial_rest,
  Tp_procmaterial_restore,
  Tp_procmaterial_decision,
  Tp_procmaterial_reply,
  Tp_procmaterial_withdraw,
  Tp_procmaterial_mobilize,
  Tp_procmaterial_expert,
  Tp_procmaterial_execute_force,
  Tp_procmaterial_execute_reminder,
  Tp_procmaterial_execute_perform,
  Tp_procmaterial_listen
} from '@/enumeration/Tp_procmaterial'

import {
  St_admreviewsonEnum
} from '@/enumeration/St_admreviewson'

// 审批过程类型 枚举
// 用于回显中文名称、颜色
export const Tp_proctype = {
  6003600: {
      name: '受理前调解',
      color: '#52c41a'
  },
  6003601: {
      name: '受理后调解',
      color: '#52c41a'
  },
  6003602: {
      name: '查阅复制',
      color: '#52c41a'
  },
  6003603: {
      name: '调查',
      color: '#52c41a'
  },
  6003604: {
      name: '勘验',
      color: '#52c41a'
  },
  6003605: {
      name: '听证',
      color: '#52c41a'
  },
  6003606: {
      name: '鉴定',
      color: '#52c41a'
  },
  6003607: {
      name: '停止执行',
      color: '#52c41a'
  },
  6003608: {
      name: '延期',
      color: '#52c41a'
  },
  6003609: {
      name: '中止',
      color: '#52c41a'
  },
  6003610: {
      name: '决定',
      color: '#52c41a'
  },
  6003611: {
      name: '被申请人答复',
      color: '#52c41a'
  },
  6003612: {
      name: '撤回',
      color: '#52c41a'
  },
  6003613: {
      name: '调卷',
      color: '#52c41a'
  },
  6003614: {
      name: '恢复',
      color: '#52c41a'
  },
  6003615: {
      name: '复议机关强制执行',
      color: '#52c41a'
  },
  6003616: {
      name: '自行履行',
      color: '#52c41a'
  },
  6003617: {
      name: '责令履行',
      color: '#52c41a'
  },
  6003619: {
      name: '听取意见',
      color: '#52c41a'
  },
  6003620: {
      name: '程序转换',
      color: '#52c41a'
  },
  6003621: {
      name: '受理',
      color: '#52c41a'
  },
  6003622: {
      name: '补正',
      color: '#52c41a'
  },
  6003623: {
      name: '告知',
      color: '#52c41a'
  },
  6003624: {
      name: '不予受理',
      color: '#52c41a'
  },
  6003625: {
      name: '撤回',
      color: '#52c41a'
  },
  6003627: {
      name: '受理其他处理',
      color: '#52c41a'
  },
  6003628: {
      name: '专家论证',
      color: '#52c41a'
  },
  6003629: {
      name: '委托人民法院强制执行',
      color: '#52c41a'
  },
  6003630: {
      name: '变更承办人',
      color: '#52c41a'
  },
  6003631: {
      name: '变更协办人',
      color: '#52c41a'
  },
  6003632: {
      name: '视为放弃',
      color: '#52c41a'
  },
  6003633: {
      name: '第三人审批',
      color: '#52c41a'
  },
  6003634: {
      name: '审理变更承办人',
      color: '#52c41a'
  },
  6003635: {
      name: '审理变更协办人',
      color: '#52c41a'
  },
  6003636: {
      name: '复议监督决定',
      color: '#52c41a'
  },
}

// 用于选择，多选、单选、下拉
export const Tp_proctypeList = [
  {
      name: '受理前调解',
      value: 6003600
  },
  {
      name: '受理后调解',
      value: 6003601
  },
  {
      name: '查阅复制',
      value: 6003602
  },
  {
      name: '调查',
      value: 6003603
  },
  {
      name: '勘验',
      value: 6003604
  },
  {
      name: '听证',
      value: 6003605
  },
  {
      name: '鉴定',
      value: 6003606
  },
  {
      name: '停止执行',
      value: 6003607
  },
  {
      name: '延期',
      value: 6003608
  },
  {
      name: '中止',
      value: 6003609
  },
  {
      name: '决定',
      value: 6003610
  },
  {
      name: '被申请人答复',
      value: 6003611
  },
  {
      name: '撤回',
      value: 6003612
  },
  {
      name: '调卷',
      value: 6003613
  },
  {
      name: '恢复',
      value: 6003614
  },
  {
      name: '复议机关强制执行',
      value: 6003615
  },
  {
      name: '自行履行',
      value: 6003616
  },
  {
      name: '责令履行',
      value: 6003617
  },
  {
      name: '听取意见',
      value: 6003619
  },
  {
      name: '程序转换',
      value: 6003620
  },
  {
      name: '受理',
      value: 6003621
  },
  {
      name: '补正',
      value: 6003622
  },
  {
      name: '告知',
      value: 6003623
  },
  {
      name: '不予受理',
      value: 6003624
  },
  {
      name: '撤回',
      value: 6003625
  },
  {
      name: '受理其他处理',
      value: 6003627
  },
  {
      name: '专家论证',
      value: 6003628
  },
  {
      name: '委托人民法院强制执行',
      value: 6003629
  },
  {
      name: '变更承办人',
      value: 6003630
  },
  {
      name: '变更协办人',
      value: 6003631
  },
  {
      name: '视为放弃',
      value: 6003632
  },
  {
      name: '第三人审批',
      value: 6003633
  },
  {
      name: '审理变更承办人',
      value: 6003634
  },
  {
      name: '审理变更协办人',
      value: 6003635
  },
  {
      name: '复议监督决定',
      value: 6003636
  },
]

// 用于判断、传值
export const Tp_proctypeValue = {
  MATER_MEDIATE: 6003600,   // 受理前调解
  HEAR_MEDIATE: 6003601,   // 受理后调解
  HEAR_TRAWL: 6003602,   // 查阅复制
  HEAR_SURVEY: 6003603,   // 调查
  HEAR_INQUEST: 6003604,   // 勘验
  HEAR_HEARING: 6003605,   // 听证
  HEAR_IDENTIFY: 6003606,   // 鉴定
  HEAR_STOP: 6003607,   // 停止执行
  HEAR_DELAY: 6003608,   // 延期
  HEAR_REST: 6003609,   // 中止
  HEAR_DECISION: 6003610,   // 决定
  HEAR_REPLY: 6003611,   // 被申请人答复
  HEAR_WITHDRAW: 6003612,   // 撤回
  HEAR_MOBILIZE: 6003613,   // 调卷
  HEAR_RESTORE: 6003614,   // 恢复
  EXECUTE_FORCE_UNIT: 6003615,   // 复议机关强制执行
  EXECUTE_SELF: 6003616,   // 自行履行
  EXECUTE_PERFORM: 6003617,   // 责令履行
  HEAR_ADVICE: 6003619,   // 听取意见
  HEAR_TRANSFORM: 6003620,   // 程序转换
  ACCEPT_ACCEPT: 6003621,   // 受理
  ACCEPT_APPEND: 6003622,   // 补正
  ACCEPT_INFORM: 6003623,   // 告知
  ACCEPT_NOACCEPT: 6003624,   // 不予受理
  ACCEPT_RESULT: 6003625,   // 撤回
  ACCEPT_OTHERDEAL: 6003627,   // 受理其他处理
  HEAR_EXPERT: 6003628,   // 专家论证
  EXECUTE_FORCE_LAW: 6003629,   // 委托人民法院强制执行
  ACCEPT_CHANGE_FIRSTPER: 6003630,   // 变更承办人
  ACCEPT_CHANGE_SECONDPER: 6003631,   // 变更协办人
  ACCEPT_ABANDON: 6003632,   // 视为放弃
  HEAR_THIRDER: 6003633,   // 第三人审批
  HEAR_CHANGE_FIRTPER: 6003634,   // 审理变更承办人
  HEAR_CHANGE_SECONDPER: 6003635,   // 审理变更协办人
  SUPERVISE_DECISION: 6003636,   // 复议监督决定
}

export const Tp_hearTypeList = [
  {
    value: Tp_proctypeValue['HEAR_MEDIATE'],
    name: '调解'
  },
  {
    value: Tp_proctypeValue['HEAR_TRAWL'],
    name: '查阅复制'
  },
  {
    value: Tp_proctypeValue['HEAR_THIRDER'],
    name: '新增第三人'
  },
  {
    value: Tp_proctypeValue['HEAR_TRANSFORM'],
    name: '程序转换'
  },
  {
    value: 'investiga',
    name: '调查',
    list: [{
        value: Tp_proctypeValue['HEAR_MOBILIZE'],
        name: '调卷'
      },
      {
        value: Tp_proctypeValue['HEAR_SURVEY'],
        name: '调查'
      },
      {
        value: Tp_proctypeValue['HEAR_IDENTIFY'],
        name: '鉴定'
      }, {
        value: Tp_proctypeValue['HEAR_EXPERT'],
        name: '专家论证'
      }, {
        value: Tp_proctypeValue['HEAR_INQUEST'],
        name: '勘验'
      },
    ]
  },
  {
    value: Tp_proctypeValue['HEAR_HEARING'],
    name: '听证'
  },
  {
    value: Tp_proctypeValue['HEAR_STOP'],
    name: '停止执行'
  },
  {
    value: Tp_proctypeValue['HEAR_DELAY'],
    name: '延期'
  },
  {
    value: Tp_proctypeValue['HEAR_REST'],
    name: '中止'
  },
  {
    value: Tp_proctypeValue['HEAR_DECISION'],
    name: '决定'
  },
  {
    value: Tp_proctypeValue['HEAR_RESTORE'],
    name: '恢复'
  },
  {
    value: Tp_proctypeValue['HEAR_CHANGE_FIRTPER'],
    name: '变更主办人'
  },
  {
    value: Tp_proctypeValue['HEAR_CHANGE_SECONDPER'],
    name: '变更协办人'
  },
  {
    value: Tp_proctypeValue['EXECUTE_FORCE_UNIT'],
    name: '复议机关强制执行'
  },
  {
    value: Tp_proctypeValue['EXECUTE_FORCE_LAW'],
    name: '委托人民法院强制执行'
  },
  {
    value: Tp_proctypeValue['EXECUTE_SELF'],
    name: '自行履行'
  },
  {
    value: Tp_proctypeValue['EXECUTE_PERFORM'],
    name: '责令履行'
  }
]

// 行政复议-审批过程类型
export const Tp_proctypeEnum = {
  /** *******受理阶段****************/
  mater_mediate: {
    key: 'mater_mediate',
    name: '受理前调解',
    value: 6003600,
    categoryKey: 'mediate_upload',
    material: Tp_procmaterial_mater_mediate,
    sonStatus: null,
    showCitymanager: false
  },
  accept_result: {
    key: 'accept_result',
    name: '撤回',
    value: 6003625,
    categoryKey: 'rollback_upload',
    material: null,
    sonStatus: null,
    showCitymanager: false
  },
  accept_append: {
    key: 'accept_append',
    name: '补正',
    value: 6003622,
    categoryKey: 'append_upload',
    material: Tp_procmaterial_accept_append,
    sonStatus: null,
    showCitymanager: false
  },
  accept_accept: {
    key: 'accept_accept',
    name: '受理',
    value: 6003621,
    categoryKey: 'accept_upload',
    material: Tp_procmaterial_accept_accept,
    sonStatus: null,
    showCitymanager: true
  },
  // accept_inform: {
  //     key: 'accept_inform',
  //     name: '告知',
  //     value: 6003623,
  //     categoryKey: 'inform_upload',
  //     material: Tp_procmaterial_accept_inform,
  //     sonStatus: undefined
  // },
  accept_noaccept: {
    key: 'accept_noaccept',
    name: '不予受理',
    value: 6003624,
    categoryKey: 'noaccept_upload',
    material: Tp_procmaterial_accept_noaccept,
    sonStatus: undefined,
    showCitymanager: true
  },
  accept_otherdeal: {
    key: 'accept_otherdeal',
    name: '视为放弃',
    value: 6003627,
    categoryKey: 'acceptother_upload',
    material: null,
    sonStatus: undefined
  },
  accept_change_firstper: {
    key: 'accept_change_firstper',
    name: '变更承办人',
    value: 6003630,
    categoryKey: 'accept_change_firstper',
    material: undefined,
    sonStatus: undefined,
    showCitymanager: false
  },
  accept_change_secondper: {
    key: 'accept_change_secondper',
    name: '变更协办人',
    value: 6003631,
    categoryKey: 'accept_change_secondper',
    material: undefined,
    sonStatus: undefined,
    showCitymanager: false
  },

  /** ******审理阶段***************/
  hear_mediate: { // 受理后调解所需文件
    key: 'hear_mediate',
    name: '受理后调解',
    value: 6003601,
    categoryKey: 'mediate_afterupload',
    material: Tp_procmaterial_hear_mediate,
    sonStatus: St_admreviewsonEnum.mediate,
    showCitymanager: true
  },
  hear_trawl: { // 查阅复制所需文件
    key: 'hear_trawl',
    name: '查阅复制',
    value: 6003602,
    categoryKey: 'trawl_upload',
    material: Tp_procmaterial_trawl,
    sonStatus: St_admreviewsonEnum.trawl,
    showCitymanager: false
  },
  hear_survey: { // 调查所需文件
    key: 'hear_survey',
    name: '调查',
    value: 6003603,
    categoryKey: 'survey_upload',
    material: Tp_procmaterial_survey,
    sonStatus: St_admreviewsonEnum.survey,
    showCitymanager: false
  },
  hear_inquest: { // 勘验所需文件
    key: 'hear_inquest',
    name: '勘验',
    value: 6003604,
    categoryKey: 'inquest_upload',
    material: Tp_procmaterial_inquest,
    sonStatus: St_admreviewsonEnum.inquest,
    showCitymanager: false
  },
  hear_hearing: {
    key: 'hear_hearing',
    name: '听证',
    value: 6003605,
    categoryKey: 'hearing_upload',
    material: Tp_procmaterial_hearing,
    sonStatus: St_admreviewsonEnum.hearing,
    showCitymanager: true
  },
  hear_identify: {
    key: 'hear_identify',
    name: '鉴定',
    value: 6003606,
    categoryKey: 'identify_upload',
    material: Tp_procmaterial_identify,
    sonStatus: St_admreviewsonEnum.identify,
    showCitymanager: false
  },
  hear_stop: {
    key: 'hear_stop',
    name: '停止执行',
    value: 6003607,
    categoryKey: 'stop_upload',
    material: Tp_procmaterial_stop,
    sonStatus: St_admreviewsonEnum.stop,
    showCitymanager: true
  },
  hear_delay: {
    key: 'hear_delay',
    name: '延期',
    value: 6003608,
    categoryKey: 'delay_upload',
    material: Tp_procmaterial_delay,
    sonStatus: St_admreviewsonEnum.delay,
    showCitymanager: false
  },
  hear_rest: {
    key: 'hear_rest',
    name: '中止',
    value: 6003609,
    categoryKey: 'rest_upload',
    material: Tp_procmaterial_rest,
    sonStatus: St_admreviewsonEnum.rest,
    showCitymanager: false
  },
  hear_restore: {
    key: 'hear_restore',
    name: '恢复',
    value: 6003614,
    categoryKey: 'restore_upload',
    material: Tp_procmaterial_restore,
    sonStatus: St_admreviewsonEnum.restore,
    showCitymanager: false
  },
  hear_decision: {
    key: 'hear_decision',
    name: '决定',
    value: 6003610,
    categoryKey: 'decision_upload',
    material: Tp_procmaterial_decision,
    sonStatus: St_admreviewsonEnum.decision,
    showCitymanager: true
  },
  hear_reply: {
    key: 'hear_reply',
    name: '被申请人答复',
    value: 6003611,
    categoryKey: '',
    material: Tp_procmaterial_reply,
    sonStatus: undefined,
    showCitymanager: false
  },
  hear_withdraw: {
    key: 'hear_withdraw',
    name: '撤回',
    value: 6003612,
    categoryKey: 'withdraw_upload',
    material: Tp_procmaterial_withdraw,
    sonStatus: St_admreviewsonEnum.toback,
    showCitymanager: false
  },
  hear_mobilize: {
    key: 'hear_mobilize',
    name: '调卷',
    value: 6003613,
    categoryKey: 'mobilize_upload',
    material: Tp_procmaterial_mobilize,
    sonStatus: St_admreviewsonEnum.mobilize,
    showCitymanager: false
  },
  hear_advice: {
    key: 'hear_advice',
    name: '听取意见',
    // value: 6003619,
    value: 6003610,
    categoryKey: 'survey_upload',
    material: Tp_procmaterial_listen,
    sonStatus: null,
    showCitymanager: false
  },
  hear_transform: {
    key: 'hear_transform',
    name: '程序转换',
    value: 6003620,
    categoryKey: 'transform_upload',
    material: null,
    sonStatus: St_admreviewsonEnum.transform,
    showCitymanager: false
  },
  hear_expert: {
    key: 'hear_expert',
    name: '专家论证',
    value: 6003628,
    categoryKey: 'expert_upload',
    material: Tp_procmaterial_expert,
    sonStatus: St_admreviewsonEnum.expert,
    showCitymanager: false
  },
  hear_thirder: {
    key: 'hear_thirder',
    name: '第三人审批',
    value: 6003633,
    categoryKey: 'thirder_upload',
    material: null,
    sonStatus: St_admreviewsonEnum.thirder,
    showCitymanager: false
  },

  hear_change_firtper: {
    key: 'hear_change_firtper',
    name: '审理变更承办人',
    value: 6003634,
    categoryKey: 'hear_change_upload',
    material: null,
    sonStatus: St_admreviewsonEnum.personchange,
    showCitymanager: false
  },

  hear_change_secondper: {
    key: 'hear_change_secondper',
    name: '审理变更协办人',
    value: 6003635,
    categoryKey: 'hear_change_upload',
    material: null,
    sonStatus: St_admreviewsonEnum.personchange,
    showCitymanager: false
  },


  /** ******归档决定阶段***************/

  execute_force_unit: {
    key: 'execute_force_unit',
    name: '复议机关强制执行',
    value: 6003615,
    categoryKey: 'force_upload',
    material: Tp_procmaterial_execute_force,
    sonStatus: St_admreviewsonEnum.forceunit,
    showCitymanager: true
  },
  execute_force_law: {
    key: 'execute_force_law',
    name: '委托人民法院强制执行',
    value: 6003629,
    categoryKey: 'force_upload',
    material: Tp_procmaterial_execute_force,
    sonStatus: St_admreviewsonEnum.forcelaw,
    showCitymanager: true
  },
  execute_self: {
    key: 'execute_self',
    name: '自行履行',
    value: 6003616,
    categoryKey: null,
    material: Tp_procmaterial_execute_reminder,
    sonStatus: St_admreviewsonEnum.urging,
    showCitymanager: false
  },
  execute_perform: {
    key: 'execute_perform',
    name: '责令履行',
    value: 6003617,
    categoryKey: 'perform_upload',
    material: Tp_procmaterial_execute_perform,
    sonStatus: St_admreviewsonEnum.perform,
    showCitymanager: true
  },

  /***  复议监督决定  ****/
  supervise_decision: {
    key: 'supervise_decision',
    name: '复议监督',
    value: 6003636
  }

}

// 行政复议-受理操作类型
export const Tp_accept = [
  Tp_proctypeValue.MATER_MEDIATE,
  Tp_proctypeValue.ACCEPT_ACCEPT,
  Tp_proctypeValue.ACCEPT_APPEND,
  Tp_proctypeValue.ACCEPT_INFORM,
  Tp_proctypeValue.ACCEPT_NOACCEPT,
  Tp_proctypeValue.ACCEPT_RESULT,
  Tp_proctypeValue.ACCEPT_OTHERDEAL,
  Tp_proctypeValue.ACCEPT_CHANGE_FIRSTPER,
  Tp_proctypeValue.ACCEPT_CHANGE_SECONDPER
]

// 行政复议-审理操作类型
export const Tp_hear = [
  Tp_proctypeValue.HEAR_MEDIATE, // 受理后调解
  Tp_proctypeValue.HEAR_TRAWL, // 查阅复制
  Tp_proctypeValue.HEAR_SURVEY, // 调查
  Tp_proctypeValue.HEAR_INQUEST, // 勘验
  Tp_proctypeValue.HEAR_HEARING, // 听证
  Tp_proctypeValue.HEAR_IDENTIFY, // 鉴定
  Tp_proctypeValue.HEAR_STOP, // 停止执行
  Tp_proctypeValue.HEAR_DELAY, // 延期
  Tp_proctypeValue.HEAR_REST, // 中止
  Tp_proctypeValue.HEAR_DECISION, // 决定
  Tp_proctypeValue.HEAR_REPLY, // 被申请人答复
  Tp_proctypeValue.HEAR_WITHDRAW, // 撤回
  Tp_proctypeValue.HEAR_MOBILIZE, // 调卷
  Tp_proctypeValue.HEAR_RESTORE, // 恢复
  Tp_proctypeValue.HEAR_ADVICE, // 听取意见
  Tp_proctypeValue.HEAR_TRANSFORM, // 程序转换
  Tp_proctypeValue.HEAR_EXPERT, // 专家论证
  Tp_proctypeValue.HEAR_CHANGE_FIRTPER, // 审理变更承办人
  Tp_proctypeValue.HEAR_CHANGE_SECONDPER // 审理变更协办人
]

// 行政复议-审理操作类型
export const Tp_execute = [
  Tp_proctypeValue.EXECUTE_FORCE_UNIT,
  Tp_proctypeValue.EXECUTE_FORCE_LAW,
  Tp_proctypeValue.EXECUTE_PERFORM,
  Tp_proctypeValue.EXECUTE_SELF
]

// 行政复议-归档操作类型
export const Tp_archivetypeEnum = {

  execute_force_unit: {
    key: 'execute_force_unit',
    name: '复议机关强制执行',
    value: 6003615
  },
  execute_self: {
    key: 'execute_self',
    name: '自行履行',
    value: 6003616
  },
  execute_perform: {
    key: 'execute_perform',
    name: '责令履行',
    value: 6003617
  },
  execute_force_law: {
    key: 'execute_force_law',
    name: '委托人民法院强制执行',
    value: 6003629
  }
}